This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Aug 22, 2011, 12:10 PM
14 Posts

How to modify/create a theme document with code and not the designer

  • Category: Styles and Themes
  • Platform: All
  • Release: 8.5.3
  • Role:
  • Tags:
  • Replies: 0

Hello,

I'm trying to be able to create/modify the content of a theme document programmatically.

I'm trying to use DXL to do this. Maybe there is another way, but that's the only way I found to do this.

The content of the theme document is encoded with base64 encoding which can be easily encoded and decoded.

The problem is that in the dxl export it seems there are some flags or informations which appears at the beginning of the base64 representation of the field (56 characters)

This flags seems to represent some details of the theme document itself and changes whenever the real "ascii" content of the theme document changes...

 

For example, if you have no characters at all in the theme document, these "flags" are (see rawdata)

<item name='$FileData' sign='true'>

<rawitemdata type='1'>

YQAYAAAAAAAAAAAAAQAAAAAAAAAAAAAAYAASAAAAAAAAAAAAAAAAAAAA

</rawitemdata></item>

 

If you add only "<theme></theme>" in the document, you have :

<item name='$FileData' sign='true'>

<rawitemdata type='1'>

YQAYAAAAAAAPAAAAAQAAAAAAAAAAAAAAYAAhAAAADwAQAAAAAAAAAAAAPHRoZW1lPjwvdGhlbWU+

AA==

</rawitemdata></item>

As you can see these 56 "flags" have changed. The part with the "<theme></theme>", is reprsented by this "PHRoZW1lPjwvdGhlbWU+AA==" but some elements changed in the 56 first characters as well.

 

So my problem is I cannot import the modified theme because those "flags" are not correct. I get an error saying the document structure is invalid (or something similar as I don't have the error at hand)...

Is there any chances to find out what those flags are to be able to modify/create a theme document using code and not through the designer ?

Or is there any other way ?

Thanks for your help

Renaud

 
P.S. This happen in 8.5.2FP2 not 8.5.3 as stated in the header... I didn't select the right value and cannot change it.. ;-) 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal